package com.guoxin.chapter4.reentractlock.awaituntiltest;

public class Run2 {
	public static void main(String[] args) throws InterruptedException {
		Service service = new Service();
		
		new Thread("A"){
			public void run() {
				service.waitMethod();
			};
		}.start();
		
		Thread.sleep(200);
		
		new Thread("B"){
			public void run() {
				service.notifyMetod();
			};
		}.start();
	}
}
